package j05buffer;

import java.io.*;

public class J2char {
    public static void main(String[] args) throws Exception {
        BufferedReader f = new BufferedReader(
                new FileReader("_1218\\src\\j05buffer\\a.txt")
        );
        /**
         * 暴力破解
         * 0
         * 1
         * 。。。
         * 9
         * 10
         * 11 。。。
         * 99
         *
         */
        System.out.println(f.read());
        System.out.println(f.readLine());
        System.out.println(f.readLine());
        System.out.println(f.readLine());
    }
}

class J3char{
    public static void main(String[] args) throws IOException {
        BufferedWriter f = new BufferedWriter(
                new FileWriter("_1218\\src\\j05buffer\\c.txt",true)
        );
        f.write("\n林黛玉");
        f.newLine();
        f.write("贾雨村");
        f.flush();
    }
}
